package com.bdk.middle.tenant.api.client;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.tenant.api.domain.TenantDO;
import com.bdk.middle.tenant.api.domain.TenantReviewCommentDO;
import com.bdk.middle.tenant.api.query.TenantQueryDO;
import com.bdk.middle.tenant.api.vo.TenantReviewCommentVO;
import org.springframework.web.bind.annotation.*;

public interface TenantClientApi {

    /**
     * 添加租户
     * @param domain 租户DO
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/add.html", method = RequestMethod.POST)
    public @ResponseBody
    ResultDO add(@RequestBody TenantDO domain);

    /**
     * 修改租户信息
     * @param domain 租户DO
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/edit.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO edit(@RequestBody TenantDO domain);

    /**
     * 获取租户详情
     * @param id 租户ID
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/get.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO get(@RequestParam String id);

    /**
     * 删除租户
     * @param id 租户ID
     * @param modifier 修改人租户名
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/remove.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO remove(@RequestParam String id, @RequestParam String modifier);

    /**
     * 查找租户列表分页
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/find.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO find(@RequestBody TenantQueryDO domain);


    @RequestMapping(value="/tenant_cliet_api/findMulti.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO findTenantMultiReview(@RequestBody TenantReviewCommentVO domain);
    /**
     * 审核租户信息
     * @param domain 查询DO
     * @return ResultDO
     */
    @RequestMapping(value="/tenant_cliet_api/check.html", method = RequestMethod.POST)
    public @ResponseBody ResultDO check(@RequestBody TenantReviewCommentDO domain);
}
